﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script type="text/javascript">
    function addTab(strUrl, strTitle) {
        strUrl = strUrl.replace("../", "");
        var varTemp = $("#divMain").tabs("exists", strTitle);
        if (varTemp == false) {
            $('#divMain').tabs('add', {
                title: strTitle,
                content: '<iframe src="' + strUrl + '" width="100%" height="100%" frameboder="0" id="' + strTitle + '"></iframe>',
                iconCls: 'icon-save',
                closable: true
            });

            $("#" + strTitle).load(function () {
                HideLoading();
            });
        }
        else {
            if (strUrl.indexOf("?") > 0) {
                strUrl += "&rdm=" + Math.random();
            }
            else {
                strUrl += "?rdm=" + Math.random();
            }
            $("#" + strTitle + "").attr("src", strUrl);
            $('#divMain').tabs('select', strTitle);
        }
    }
</script>
<div id="left" class="easyui-accordion" fit="true" border="false">
        
    <CBW:MPRepeater ID="bMPRepeater" runat="server">
        <ItemTemplate>

            <div id='divParent<%#Eval("ORDER_ID") %>' title='<%#Eval("MENU_TITLE")%>'>

                     
                    <CBW:MPRepeater ID="sMPRepeater" runat="server">
                        <ItemTemplate>
                            <asp:Literal ID="showid" runat="server" Visible="false" Text='<%#Eval("id")%>' />
                            <CBW:MPRepeater ID="ssMPRepeater" runat="server">
                                <ItemTemplate>
                                    <div id="divChild<%#Eval("id")%>""><img src='<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %><%#Eval("MENU_PIC") %>'/><a href='#' onclick="addTab('<%#Eval("MENU_URL_NEW")%>','<%#Eval("MENU_TITLE")%>');" title='<%#Eval("MENU_MEMO")%>'><%#Eval("MENU_TITLE")%></a></div>
                                </ItemTemplate>
                                            
                            </CBW:MPRepeater>
                        </ItemTemplate>
                    </CBW:MPRepeater>
                            
            </div>
        </ItemTemplate>
    </CBW:MPRepeater>
           
</div>